package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 device_node
 * 
 * @author ruoyi
 * @date 2020-10-14
 */
public class DeviceNode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 节点名称 */
    @Excel(name = "节点名称")
    private String nodeName;

    /** 节点类型名称 */
    @Excel(name = "节点类型名称")
    private String nodeTypeName;

    /** 所属沼气站 */
    @Excel(name = "所属沼气站")
    private Long deptId;

    /** 网关id */
    @Excel(name = "网关id")
    private Long gatewayId;

    /** $column.columnComment */
    @Excel(name = "网关id")
    private Integer isOnline;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "网关id", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastupdate;



    private SysDept dept;

    private DeviceGateway gateway;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNodeName(String nodeName) 
    {
        this.nodeName = nodeName;
    }

    public String getNodeName() 
    {
        return nodeName;
    }
    public void setNodeTypeName(String nodeTypeName) 
    {
        this.nodeTypeName = nodeTypeName;
    }

    public String getNodeTypeName() 
    {
        return nodeTypeName;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setGatewayId(Long gatewayId) 
    {
        this.gatewayId = gatewayId;
    }

    public Long getGatewayId() 
    {
        return gatewayId;
    }
    public void setIsOnline(Integer isOnline) 
    {
        this.isOnline = isOnline;
    }

    public Integer getIsOnline() 
    {
        return isOnline;
    }
    public void setLastupdate(Date lastupdate) 
    {
        this.lastupdate = lastupdate;
    }

    public Date getLastupdate() 
    {
        return lastupdate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nodeName", getNodeName())
            .append("nodeTypeName", getNodeTypeName())
            .append("deptId", getDeptId())
            .append("gatewayId", getGatewayId())
            .append("isOnline", getIsOnline())
            .append("lastupdate", getLastupdate())
            .toString();
    }

    public SysDept getDept() {
        return dept;
    }

    public void setDept(SysDept dept) {
        this.dept = dept;
    }

    public DeviceGateway getGateway() {
        return gateway;
    }

    public void setGateway(DeviceGateway gateway) {
        this.gateway = gateway;
    }
}
